﻿<%@ Page Title="" Language="C#" MasterPageFile="MasterPage.master" AutoEventWireup="true" CodeFile="AlterarEmpresa.aspx.cs" Inherits="_AlterarEmpresa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
    #tabela 
    {
       font: 18px tahoma, arial;
    }
    .dados
    {
        }
    .descricao 
    {
        width: 345px;
    }
    select
    {
        font: 16px tahoma, arial;
        padding: 5px;
    }
    .nome 
    {
        text-align:right;
        font: bold 30px Tahoma, Arial;
        color: #006C91;
    }

    img 
    {
        border: none;
    }

    input[type=text], input[type=password]
    {
        padding: 5px;
    }
        span
    {
        font-size: 12px;
    }
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script type="text/javascript">muda(empresa, '#0C5C7E');</script>
<table style="width:494px; margin-top:10px;" cellpadding="0" cellspacing="4" 
        id="tabela">
<tr>
    <td colspan="2" class="nome">Alterar Cadastro</td>
</tr>
<tr>
    <td class="dados" colspan="2">&nbsp;</td>
</tr>
<tr>
    <td class="dados">CNPJ:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCNPJ" runat="server" MaxLength="14" Width="140px" 
            Enabled="False"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Razão Social:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtRazao" runat="server" MaxLength="200" Width="310px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Nome Fantasia:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtNomeFantasia" runat="server" MaxLength="200" Width="310px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Ramo atividade:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtSegmentoAtuacao" runat="server" MaxLength="100" 
            Width="310px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Endereço:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtEndereco" runat="server" MaxLength="100" Width="310px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Número:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtNumero" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Complemento:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtComplemento" runat="server" MaxLength="20"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Bairro:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtBairro" runat="server" MaxLength="30" Width="210px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Cidade:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCidade" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">CEP:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtCEP" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">UF:</td>
    <td align="left" class="descricao">
        <asp:TextBox ID="txtUF" runat="server" MaxLength="2" Width="20px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="style1">Telefone:</td>
    <td align="left" class="style2">
        <asp:TextBox ID="txtFonePre" runat="server" MaxLength="2" Width="20px"></asp:TextBox>
        <asp:TextBox ID="txtFone" runat="server" MaxLength="8" Width="80px"></asp:TextBox>
    </td>
</tr>    
<tr>
    <td class="dados">Email:</td>
    <td class="descricao">
        <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Site:</td>
    <td class="descricao">
        <asp:TextBox ID="txtSite" runat="server" MaxLength="50" Width="210px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Responsável:<br /><span>(pelo cadastro)</span></td>
    <td class="descricao">
        <asp:TextBox ID="txtResponsavelCadastro" runat="server" MaxLength="70" 
            Width="210px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="dados">Senha:</td>
    <td class="descricao">
        <asp:TextBox ID="txtSenha" runat="server" MaxLength="8" 
            Width="80px"></asp:TextBox>
    </td>
</tr>
<tr>
    <td class="style1">Confirma:</td>
    <td class="style2">
        <asp:TextBox ID="txtConfirma" runat="server" MaxLength="8" 
            Width="80px"></asp:TextBox>
    </td>
</tr>
        <tr><td colspan="2" style="height:10px;">

                    <asp:RequiredFieldValidator ID="RV1" runat="server" 
                ErrorMessage="Informe o CNPJ" ControlToValidate="txtCNPJ" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV2" runat="server" 
                ErrorMessage="Informe a Razão Social" ControlToValidate="txtRazao" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV13" runat="server" 
                ErrorMessage="Informe o Nome de Fantasia" ControlToValidate="txtNomeFantasia" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV14" runat="server" 
                ErrorMessage="Informe o Ramo de Atividade" ControlToValidate="txtSegmentoAtuacao" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV3" runat="server" 
                ErrorMessage="Informe o Endereço" ControlToValidate="txtEndereco" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV4" runat="server" 
                ErrorMessage="Informe o Número" ControlToValidate="txtNumero" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV5" runat="server" 
                ErrorMessage="Informe o Bairro" ControlToValidate="txtBairro" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV6" runat="server" 
                ErrorMessage="Informe a Cidade" ControlToValidate="txtCidade" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV7" runat="server" 
                ErrorMessage="Informe o CEP" ControlToValidate="txtCEP" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV8" runat="server" 
                ErrorMessage="Informe a UF" ControlToValidate="txtUF" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV9" runat="server" 
                ErrorMessage="Informe o DDD" ControlToValidate="txtFonePre" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV10" runat="server" 
                ErrorMessage="Informe o Telefone" ControlToValidate="txtFone" 
                Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV11" runat="server" 
                ErrorMessage="Informe o Email" ControlToValidate="txtEmail" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV15" runat="server" 
                ErrorMessage="Informe o nome do responsável pelo cadastro" 
                ControlToValidate="txtResponsavelCadastro" Display="None"></asp:RequiredFieldValidator>
            <asp:RequiredFieldValidator ID="RV12" runat="server" 
                ErrorMessage="Informe a Senha" ControlToValidate="txtSenha" Display="None"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="REV1" runat="server" 
                ControlToValidate="txtEmail" Display="None" ErrorMessage="Email inválido" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
            <asp:CompareValidator ID="CV1" runat="server" ControlToCompare="txtSenha" 
                ControlToValidate="txtConfirma" Display="None" 
                ErrorMessage="A senha confirmada é diferente da fornecida"></asp:CompareValidator>
            <asp:ValidationSummary ID="VS1" runat="server" ShowMessageBox="True" 
                ShowSummary="False" />

            </td></tr>
        </table>
        <div style="text-align:right">
            <asp:ImageButton ID="btnAlterar" runat="server" 
                ImageUrl="../figuras/bAlterar.gif" 
                onclick="btnCadastro_Click" />
&nbsp;</div>
</asp:Content>

